<template>
  <div class="cartbottom">
    <div class="all">
      <img src="~assets/img/cart/tick.svg" alt=""><span>全选</span>
    </div>
    <div class="totall">
      合计:￥{{totalPrice}}
    </div>
    <div class="jisuan">
      去计算({{cartLength}})
    </div>
  </div>
</template>

<script>
export default {
  name: 'cartBottomBar',
  data(){
    return{
      selectLength: 0,
      allLength: 0,
    }
  },
  computed:{
    totalPrice(){
      return this.$store.getters.totalprice.toFixed(2);
    },
    cartLength() {
      return this.$store.getters.cartLength;
      // return this.selectLength;
    },
  }
}
</script>

<style scoped>
  .cartbottom{
    height: 30px;
    background-color: rgb(221, 221, 221);
    position: relative;
    bottom:30px;
    display: flex;
    font-size: 14px;
    font-weight: 300px;
    text-align: center;
    line-height: 30px;
  }
    .all{
      flex: 1;
    }
      .all img{
        border-radius: 50%;
        border: solid 1px rgb(112, 112, 112);
        margin-top:6px;
        margin-right: 5px;
      }
    .totall{
      width: 200px;
    }
    .jisuan{
      width: 90px;
      background-color: rgb(209, 18, 18);
      color:#fff;
    }
</style>